package com.biostime.qdingding.modules.qd.entity;

import java.util.Date;

import com.biostime.qdingding.common.persistence.DataEntity;
import com.biostime.qdingding.modules.sys.entity.User;

/**
 * 合同Entity
 * @author king
 * @version 2015-11-05
 */
public class Contract extends DataEntity<Contract> {

	private static final long serialVersionUID = 1L;
	
	private String code;// 合同编号
	private Double amount;// 合同金额
	private Date limitDate;// 合同金额有效期
//	private String memberName;// 会员真实姓名
//	private String memberMobile;// 会员的手机号，业务流程中保证是注册APP的手机号
//	private String studentName;// 学员（宝宝）的真实姓名
//	private Date studentBirthday;// 学员（宝宝）的出生日期
//	private Integer studentSex;// 学员（宝宝）的性别
//	private Integer salesId;// 销售后台用户ID
//	private String salesName;// 拿下这份合同的顾问的后台登记姓名
	private Date signDate;// 合同签订日期
	private Integer status;// 状态（1生效，2合同中止，3合同到期）
//	private Integer MemberId;// 主键编号
//	private Integer studentId;// 学员编号
	private Date auditDate;// 审核日期
	private Integer auditBy;// 审核人
	private Double paidAmount;//已支付金额
	private String payHint;//支付提示
	
	private Integer abort;//是否中止
	
	private User sales;//所属顾问
	
	private Member member;//会员	
	private Student student;//学员
	private Center center;//所属早教中心
	
	private Privilege leavePriv; //请假特权
	private Privilege abortPriv; //中止特权
	
	private String setId;//学员所属套餐ID
	
	private Integer broken;//是否断号
	private String brokenReason;//断号理由
	
	private Integer validityTime;//金额有效期
	
	private String attachUrl;//附件地址
	
	private String promotion;//优惠详细信息
	
	private Integer isFree;//是否免费体验
	private String type;//合同类型
	private Integer isFull;//是否全额支付
	private String couponId;//优惠券id
	

	private Date startOn;//查询用 起始时间 
	private Date endOn;//查询用 结束时间
	
	private Date createStart;//查询用 创建时间查询上限
	private Date createEnd;//查询用 创建时间查询下限

	public Contract(){
		super();
		//status = 0;
		//abort = 0;
	}
	
	public Contract(String id){
		super(id);
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}
	
	public Date getLimitDate() {
		return limitDate;
	}

	public void setLimitDate(Date limitDate) {
		this.limitDate = limitDate;
	}
	
	public Date getSignDate() {
		return signDate;
	}

	public void setSignDate(Date signDate) {
		this.signDate = signDate;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Date getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}
	
	public Integer getAuditBy() {
		return auditBy;
	}

	public void setAuditBy(Integer auditBy) {
		this.auditBy = auditBy;
	}

	public Center getCenter() {
		return center;
	}

	public void setCenter(Center center) {
		this.center = center;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Double getPaidAmount() {
		return paidAmount;
	}

	public void setPaidAmount(Double paidAmount) {
		this.paidAmount = paidAmount;
	}

	public String getPayHint() {
		return payHint;
	}

	public void setPayHint(String payHint) {
		this.payHint = payHint;
	}

	public User getSales() {
		return sales;
	}

	public void setSales(User sales) {
		this.sales = sales;
	}

	public String getSetId() {
		return setId;
	}

	public void setSetId(String setId) {
		this.setId = setId;
	}

	public Integer getAbort() {
		return abort;
	}

	public void setAbort(Integer abort) {
		this.abort = abort;
	}

	public Privilege getLeavePriv() {
		return leavePriv;
	}

	public void setLeavePriv(Privilege leavePriv) {
		this.leavePriv = leavePriv;
	}

	public Privilege getAbortPriv() {
		return abortPriv;
	}

	public void setAbortPriv(Privilege abortPriv) {
		this.abortPriv = abortPriv;
	}

	public Integer getBroken() {
		return broken;
	}

	public void setBroken(Integer broken) {
		this.broken = broken;
	}

	public String getBrokenReason() {
		return brokenReason;
	}

	public void setBrokenReason(String brokenReason) {
		this.brokenReason = brokenReason;
	}

	public Integer getValidityTime() {
		return validityTime;
	}

	public void setValidityTime(Integer validityTime) {
		this.validityTime = validityTime;
	}

	public String getAttachUrl() {
		return attachUrl;
	}

	public void setAttachUrl(String attachUrl) {
		this.attachUrl = attachUrl;
	}

	public Integer getIsFree() {
		return isFree;
	}

	public void setIsFree(Integer isFree) {
		this.isFree = isFree;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getStartOn() {
		return startOn;
	}

	public void setStartOn(Date startOn) {
		this.startOn = startOn;
	}

	public Date getEndOn() {
		return endOn;
	}

	public void setEndOn(Date endOn) {
		this.endOn = endOn;
	}

	public Date getCreateStart() {
		return createStart;
	}

	public void setCreateStart(Date createStart) {
		this.createStart = createStart;
	}

	public Date getCreateEnd() {
		return createEnd;
	}

	public void setCreateEnd(Date createEnd) {
		this.createEnd = createEnd;
	}

	public Integer getIsFull() {
		return isFull;
	}

	public void setIsFull(Integer isFull) {
		this.isFull = isFull;
	}

	public String getPromotion() {
		return promotion;
	}

	public void setPromotion(String promotion) {
		this.promotion = promotion;
	}

	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

}